package com.glory.study.service;


import com.glory.study.dao.mapper.db1.GroupIdInfoDb1Mapper;
import com.glory.study.dao.mapper.db2.GroupIdInfoDb2Mapper;

import com.glory.study.model.GroupIdInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class GroupIdInfoService {

    //数据源1
    @Autowired
    private GroupIdInfoDb1Mapper groupIdInfoDb1Mapper;
    //数据源2
    @Autowired
    private GroupIdInfoDb2Mapper groupIdInfoDb2Mapper;

    public GroupIdInfo findById1(Integer id) throws Exception {
        return groupIdInfoDb1Mapper.findById1(id);
    }

    public GroupIdInfo findById2(Integer id) throws Exception {
        return groupIdInfoDb2Mapper.findById2(id);
    }
}
